package com.hcg.initproject.domain.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * channel
 * @author 
 */
public class Channel implements Serializable {
    private Long channel_id;

    private LocalDateTime create_time;

    private String creator;

    private String channel_name;

    private String channel_code;

    private static final long serialVersionUID = 1L;

    public Long getChannel_id() {
        return channel_id;
    }

    public void setChannel_id(Long channel_id) {
        this.channel_id = channel_id;
    }

    public LocalDateTime getCreate_time() {
        return create_time;
    }

    public void setCreate_time(LocalDateTime create_time) {
        this.create_time = create_time;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getChannel_name() {
        return channel_name;
    }

    public void setChannel_name(String channel_name) {
        this.channel_name = channel_name;
    }

    public String getChannel_code() {
        return channel_code;
    }

    public void setChannel_code(String channel_code) {
        this.channel_code = channel_code;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Channel other = (Channel) that;
        return (this.getChannel_id() == null ? other.getChannel_id() == null : this.getChannel_id().equals(other.getChannel_id()))
            && (this.getCreate_time() == null ? other.getCreate_time() == null : this.getCreate_time().equals(other.getCreate_time()))
            && (this.getCreator() == null ? other.getCreator() == null : this.getCreator().equals(other.getCreator()))
            && (this.getChannel_name() == null ? other.getChannel_name() == null : this.getChannel_name().equals(other.getChannel_name()))
            && (this.getChannel_code() == null ? other.getChannel_code() == null : this.getChannel_code().equals(other.getChannel_code()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getChannel_id() == null) ? 0 : getChannel_id().hashCode());
        result = prime * result + ((getCreate_time() == null) ? 0 : getCreate_time().hashCode());
        result = prime * result + ((getCreator() == null) ? 0 : getCreator().hashCode());
        result = prime * result + ((getChannel_name() == null) ? 0 : getChannel_name().hashCode());
        result = prime * result + ((getChannel_code() == null) ? 0 : getChannel_code().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", channel_id=").append(channel_id);
        sb.append(", create_time=").append(create_time);
        sb.append(", creator=").append(creator);
        sb.append(", channel_name=").append(channel_name);
        sb.append(", channel_code=").append(channel_code);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}